<?php
/**
	Tela de confirma��o para o cadastro de um novo Campus.
*/

// dados do funcion�rios vindos de CadastrarUnidade.php
if( !function_exists('__autoload') )
{
    function __autoload($class_name) {
    require_once $class_name . '.php';
    }
}

$c = new Campus( 0, $_POST['nomeUnidade'], $_POST['responsavelUnidade'] );
$campus = urlencode(serialize($c));

?>
<html>
	<head>
		<title>SAEO - Confirmar Cadastro da Unidade</title>
		<link rel='stylesheet' type='text/css' href='templates/estilos.css'>
	</head>
	<body class='body'>
		<form name='confirmar_cadastro_campus' action='EnviarDadosCampus.php?operacao=1' method='post'>
		<input type='hidden' name='campus' value='<?php echo $campus; ?>' />
		<table width='779' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFFF'>
			<tr>
				<td><?php include "Topo.php"; ?></td>
			</tr>
			<tr>
				<td>
					<div class='titulosTabelas' style='width:779; height:20; background:url(templates/tabela.JPG)'>CONFIRMAR CADASTRO DA UNIDADE</div>
				</td>
			</tr>
			<tr>
				<td colspan='2'>&nbsp;</td>
			</tr>
			<tr>
				<td>
					<table class='tabela' width='650' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFFF'>
						<tr>
							<td>&nbsp;</td>
						</tr>
						<tr>
							<td class='textoTabelas' width='15%'>Nome: </td>
							<td class='textoTabelas'><?php echo $_POST['nomeUnidade'] ?></td>
							<input type='hidden' name='nomeUnidade' value='<?php echo $_POST['nomeUnidade']; ?>' />
						</tr>
						<tr>
							<td colspan='2'>&nbsp;</td>
						</tr>
						<tr>
							<td class='textoTabelas'>Respons&aacute;vel: </td>
							<td class='textoTabelas'><?php echo $_POST['responsavelUnidade'] ?>
							<input type='hidden' name='responsavelUnidade' value='<?php echo $_POST['responsavelUnidade']; ?>' /></td>
						</tr>
						<tr>
							<td colspan='2'>&nbsp;</td>
						</tr>
						<tr>
							<td colspan='2' height='46'>
								<div style='position:relative;left:220px'>
									<img style='width:100px;height:30px;cursor:pointer;' src='templates/btvoltar.JPG' onclick='javascript: history.go(-1);'>&nbsp
									<input type='image' style='width:100px;height:30px;' src='templates/btavancar.JPG'/>
								</div>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
			</tr>
			<tfoot>
				<tr>
					<td colspan='2'>&nbsp;</td>
				</tr>
				<tr> 
					<?php include 'rodapeCreditos.php'; ?>
				</tr>
			</tfoot>
		</table>
		</form>
	</body>
</html>